package com.mybatis.entity;

import java.time.LocalDate;


/*
学生表对应的实体类
* */
public class Student {
    private String sno;
    private String sname;
    private String sex;
    private String nation;
    private Integer age;
    private LocalDate birthday;
    private String cid;
    private String mno;
    private String dno;


    public Student() {
    }

    public Student(String sno, String sname, String sex, String nation, Integer age, LocalDate birthday, String cid, String mno, String dno) {
        this.sno = sno;
        this.sname = sname;
        this.sex = sex;
        this.nation = nation;
        this.age = age;
        this.birthday = birthday;
        this.cid = cid;
        this.mno = mno;
        this.dno = dno;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", nation='" + nation + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", cid='" + cid + '\'' +
                ", mno='" + mno + '\'' +
                ", dno='" + dno + '\'' +
                '}';
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getMno() {
        return mno;
    }

    public void setMno(String mno) {
        this.mno = mno;
    }

    public String getDno() {
        return dno;
    }

    public void setDno(String dno) {
        this.dno = dno;
    }
}
